@echo off
cd /d %~dp0 
set configPath=%~dp0influxdb1.conf
cd /d %~dp0  
call function_installService.bat influx1 influxd.exe "-config C:\software\influx\influxdb1.conf" "influxDB history database -1#"
sc start influx1

ping 127.0.0.1 -n 2 -w 1000 > nul

influx -host localhost -port 8086 -execute "CREATE DATABASE winccoa"
influx -host localhost -port 8086 -execute "CREATE USER "etm" WITH PASSWORD 'etm#123' WITH ALL PRIVILEGES"

pause